chore(data): drop dead prefs keys, unused Float branch, and narrating kdoc - #165
Merged
Conversation
… kdoc Co-authored-by: Steven Gates <gates.steven@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Cleanup-only PR that removes dead data/test scaffolding and trims narrating KDoc in the data/diagnostics/baselineprofile area. Subtraction only with no behavior changes.
Deletions
UserPreferencesRepositoryImpl.kt(~lines 40-43): Deleted the three commented-out future DataStore keys (CAPTURE_DURATION_MS,DEFAULT_PLAYBACK_SPEED,AUDIO_ENABLED) and their "Future keys:" aspirational comment. These were never wired and have no concrete plan.UserPreferencesRepositoryImpl.kt(~lines 26-30): Shrunk constructor KDoc from 5 lines to a one-liner:/** Production implementation of [UserPreferencesRepository]. */. The Flow/edit/IOException behavior is already documented in the code and interface.UserPreferencesRepository.kt(~lines 5-11): Shrunk interface KDoc from 7 lines to one short line naming what it stores (onboarding, flags, saved-loop count). The DataStore backing and test-swap rationale are standard patterns that don't need repetition.FirebaseAnalyticsReporterImpl.kt(~line 47): Deleted the speculativeis Float -> putDouble(key, value.toDouble())branch. No Float analytics params exist in the codebase (in fact,logEventitself is not yet wired per the interface KDoc "custom events are not wired yet"), making this defensive code premature.BaselineProfileGenerator.kt(~lines 20-23): Deleted the narrating comments that restatestartActivityAndWait(). The code is self-documenting; comments should explain non-obvious intent, not restate obvious calls.Note:
FakeVideoImporterinOpenLoopViewModelTest.ktwas not deleted because it is still in use (lines 389, 426, 474, 500).Net change: -23 lines, +2 lines (trimmed KDoc) across 4 files. No code changes, only comment/doc deletions and KDoc trims.
Related Issue
Part of ongoing code hygiene; no specific issue. This PR is independent of PR #164 (camera lens comment cleanup) with no overlapping files.
Type of Change
How Has This Been Tested?
Checklist
allWarningsAsErrorsis on).